package com.jiyongjun.component.exception.parser;

import org.apache.dubbo.rpc.Invocation;
import org.springframework.core.Ordered;

/**
 * <h2></h2>
 * <h3>描述：</h3>
 *
 * @author yongjun.jyj
 * @since 2022/6/13 15:18
 */
public interface ExceptionParser extends Ordered {
    boolean isMatch(Throwable throwable);

    ExceptionParseResult handle(Invocation invocation, Throwable throwable);
}
